package com.study.kafka.infrastructure.mq.consumer;

import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

/**
 * @author xl-9527
 * @since 2025/3/27
 **/
@Component
public class HelloKafkaTopicConsumer {


    @KafkaListener(topics = "hello", groupId = "xl-9527")
    public void listen(String message) {
        System.out.println("consumer message: " + message);
    }
}
